package cn.edu.seu.ssny.common;

import cn.edu.seu.ssny.entity.Device;
import cn.edu.seu.ssny.service.IDeviceService;
import cn.edu.seu.ssny.socket.MyServerHandler;
import com.alibaba.fastjson.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

public class JsonProcessor {
    private static final Logger logger = Logger.getLogger(JsonProcessor.class.getName());

    private static JsonProcessor jsonProcessor;

    @Autowired
    private IDeviceService deviceService;

    @PostConstruct //通过@PostConstruct实现初始化bean之前进行的操作
    public void init() {
        jsonProcessor = this;
        jsonProcessor.deviceService = this.deviceService;
    }

}
